import { ref } from 'vue'
import { defineStore } from 'pinia'
import type { User } from '../config/data/data'

export const useUserStore = defineStore('userStore', () => {
  //个人用户信息
  const userInfo = ref<User>({
    uId: 1,
    uName: '测试用户上线删除',
    uAvatar: 'https://www.lyzhnb.top/113b46b4-a2e4-4b4f-9cde-7e6a0f6755d0',
    uPhone: null,
    uStatue: 1,
    uCreateTime: new Date(),
  })

  return {
    userInfo,
  }
})
